package user;

import book.BookList;
import operation.IOPeration;

/**
 * Created with IntelliJ IDEA.
 * Description：
 * User：user
 * DATE:2021-10-29
 * Time:20:24
 */
public abstract class User {
    protected String name;
    public IOPeration[] ioPerations;

    public User(String name) {
        this.name = name;
    }

    public abstract int  menu();

    public void doIOperation(int choice, BookList bookList){
        this.ioPerations[choice].work(bookList);
    }
}
